﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class Link
    {
        #region[Public Properties]

        public string Id { get; set; }
        public string Name { get; set; }
        public string Line1 { get; set; }
        public string Line2 { get; set; }
        public string Link1 { get; set; }
        public string Link2 { get; set; }
        public string Postion { get; set; }
        public string Ord { get; set; }
        public string Active { get; set; }
        public string Lang { get; set; }

        #endregion
        #region[LinkIDataReader]
        public static Link LinkIDataReader(IDataReader dr)
        {
            var obj = new Link
                          {
                              Id = Convert.ToString(dr["Id"]),
                              Name = Convert.ToString(dr["Name"]),
                              Line1 = Convert.ToString(dr["Line1"]),
                              Line2 = Convert.ToString(dr["Line2"]),
                              Link1 = Convert.ToString(dr["Link1"]),
                              Link2 = Convert.ToString(dr["Link2"]),
                              Postion = Convert.ToString(dr["Postion"]),
                              Ord = Convert.ToString(dr["Ord"]),
                              Active = Convert.ToString(dr["Active"]),
                              Lang = Convert.ToString(dr["Lang"])

                          };
            return obj;
        }
        #endregion
    }
}
